package com.elcom.roaming.module.synthesis.isup;

import com.elcom.roaming.common.util.match.ObjectInput;

public class ISUPMessage extends ObjectInput {
	public ISUPMessage(int seq, String time, String type, String desPntCode, String orgPntCode, String cirIdnCode, String calling, String called, String errCode) {
		setKey(new ISUPKey(seq, time, desPntCode, orgPntCode, cirIdnCode));
		
		if (type.equals("IAM")) setValue(new ISUPValue(calling, called));
		else setValue(new ISUPValue(errCode));
	}
}
